*Note: This code estimates the Models 3 and 4, as reported in Table 1 of the main research note.
*	To do so, it reads-in the Stata .dta file "MonMalariaDataset.dta" and then prints relevant table output to screen.

*clear Stata
clear
clear matrix

*set memory
set more 1
set matsize 400
set mem 500m

*set working directory
cd  ""

*start log file
log using "Models_3_through_4_Table_1", replace

*read-in monadic  dataset
use "MonMalariaDataset.dta"

******************************************************
******************Table 1 Results*********************
******************************************************

*fixed effects (monadic), baseline (Model 3)
xtnbreg dr_1_at_2_m Lmalaria_interp_2_m, fe

*fixed effects (monadic), full (Model 4)
xtnbreg dr_1_at_2_m Lmalaria_interp_2_m Llog_trade_m Llog_gdppc_2_m Lln_cinc_2_m Ldemocracy_2_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11, fe

*close log file
log close
